class Question:
    def __init__(self, course_id, knowledge_point_id, question_type, content, options, answer, explanation, difficulty):
        self.course_id = course_id
        self.knowledge_point_id = knowledge_point_id
        self.question_type = question_type
        self.content = content
        self.options = options
        self.answer = answer
        self.explanation = explanation
        self.difficulty = difficulty

    def to_dict(self):
        return {
            'course_id': self.course_id,
            'knowledge_point_id': self.knowledge_point_id,
            'question_type': self.question_type,
            'content': self.content,
            'options': self.options,
            'answer': self.answer,
            'explanation': self.explanation,
            'difficulty': self.difficulty
        }
